package Map;

public class MapArr {

    public int max;
    public int mapArr[][];

    public MapArr(int max) {
        this.max = max;
        mapArr=new int[max+1][max+1];
        for(int i=1;i<max+1;i++){
            mapArr[0][i]=65+i-1;
            mapArr[i][0]=65+i-1;
        }
    }

    public void add(int index01,int index02){
        mapArr[index01][index02]=1;
    }
    public void print(int mapArr[][]){
        System.out.print("   ");
        for(int i=1;i<max+1;i++){
            System.out.printf("%-3c",mapArr[0][i]);
        }
        System.out.println();
        for(int i=1;i<max+1;i++){
            System.out.printf("%-3c",mapArr[i][0]);
            for(int j=1;j<max+1;j++){
                System.out.printf("%-3d",mapArr[i][j]);
            }
            System.out.println();
        }
    }
}
